﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;

/// <summary>
///AddWebService 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class AddWebService : System.Web.Services.WebService
{
    public AddWebService()
    {
        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
    }

    [WebMethod]
    public int Add(int x, int y)
    {
        int s = 0;

        s = x + y;
        return s;
    }
}